import request from '@/utils/request'

// 查询车间绩效信息列表
export function listWsperformance(query) {
  return request({
    url: '/sl/wsperformance/list',
    method: 'get',
    params: query
  })
}

// 查询车间绩效信息详细
export function getWsperformance(performanceId) {
  return request({
    url: '/sl/wsperformance/' + performanceId,
    method: 'get'
  })
}

// 新增车间绩效信息
export function addWsperformance(data) {
  return request({
    url: '/sl/wsperformance',
    method: 'post',
    data: data
  })
}

// 修改车间绩效信息
export function updateWsperformance(data) {
  return request({
    url: '/sl/wsperformance',
    method: 'put',
    data: data
  })
}

// 删除车间绩效信息
export function delWsperformance(performanceId) {
  return request({
    url: '/sl/wsperformance/' + performanceId,
    method: 'delete'
  })
}
